package com.ylyq.lingoserver.constants;

public enum ExceptionEnum {
    FAIL(-200,"操作失败"),
    //token或type空
    TOKEN_TYPE_ERROR(1000,"UserToken or tokenType Has Not Exits!"),
    TOKEN_EXPIRE(1001,"UserToken or tokenType Invalid!"),
    AUTH_TOKEN_EXPIRE(1002,"Oceanengine UserToken Invalid!");

    private Integer code;
    private String  msg;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    ExceptionEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
